import 'package:jicaimao_flutter/entity/base_model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'user_status_entity.g.dart';

@JsonSerializable()
class UserStatusModel extends BaseModel {
  UserStatusModelReal result;

  UserStatusModel(this.result) : super("", "");

  factory UserStatusModel.fromJson(Map<String, dynamic> json) =>
      _$UserStatusModelFromJson(json);
}

@JsonSerializable()
class UserStatusModelReal {
  int payPassword;
  int purseAddress;
  int bscAddress;
  int auth;
  int bankId;

  UserStatusModelReal(
      {this.payPassword,
      this.purseAddress,
      this.bscAddress,
      this.auth,
      this.bankId});

  factory UserStatusModelReal.fromJson(Map<String, dynamic> json) =>
      _$UserStatusModelRealFromJson(json);
}
